package com.zp.security.oauth2.customized.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * 自定义邮箱UserDetailService
 *
 * @author zp
 */
public interface EmailCodeUserDetailService{

    /**
     * 通过邮箱加载用户信息
     *
     * @param email 电子邮件
     */
    UserDetails loadUserByEmail(String email) throws UsernameNotFoundException;
}
